package phan.connection;

/**
 *
 * @author BAILLEURS SERVICES
 */
import java.sql.*;
import java.io.Serializable;
import phan.connection.*;

public class DBLien implements Serializable{
    private Statement lien=null;

    public Statement getLien(Connection conx){
        if(construireStatement(conx)){
            return lien;
        }else   {
                return null;
                }

        }
     public boolean construireStatement(Connection conx){
         boolean status=false;
         try{
             lien=conx.createStatement();
             status=true;
         }catch(Exception e){
             status=false;
             System.out.println(e);
         }
         return status;
     }

}
